package com.alipay.util;

import java.math.BigDecimal;

public class RandomUtils {



    public static BigDecimal randomDouble(double min,double max) {
        BigDecimal bd = new BigDecimal(Math.random() * (max - min) + min);
        bd.setScale(2, BigDecimal.ROUND_HALF_UP);// 保留2位小数并四舍五入
        return bd;
    }
}
